package com.study.ctripapollo.enums.common;

public enum ResultCodEnum {
    SUCCESS(1, "成功"),
    FAIL(0, "失败"),
    EXCEPTION(-1, "异常");

    private Integer code;
    private String desc;

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    ResultCodEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
